package com.sunqianhu.design_patterns_23.structural.decorator;

public class Milk extends CondimentDecorator{
    public Milk(Beverage beverage) {
        super(beverage);
    }

    public double cost() {
        return beverage.cost() + 2;
    }

    public void addedBehavior() {
        System.out.println("附件的功能");
    }
}
